<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('创建出库信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-ware-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">订单编号：</label>
            <div class="col-sm-8">
                <select name="mkOrderIndent" class="form-control m-b">
                    <option value="" >--请选择--</option>
                    <option th:each="s:${list}" th:value="${s}" th:text="${s}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">仓库名称：</label>
            <div class="col-sm-8">
                <select name="repoWareId" class="form-control m-b">
                    <option value="" >--请选择--</option>
                    <option th:each="ware:${repoWares}" th:value="${ware.wareId}" th:text="${ware.wareName}"></option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">出库日期：</label>
            <div class="col-sm-8">
                <input name="ckTime" class="form-control" type="date">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">出库人：</label>
            <div class="col-sm-8">
                <option name="sysCkUserId" class="form-control" th:value="${sysUser.userId}" th:text="${sysUser.userName}" disabled></option>
            </div>
        </div>



    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var prefix = ctx + "storage/ck"
    $("#form-ware-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-ware-add').serialize());
        }
    }

</script>
</body>
</html>